package com.cf.base.mvp.log;

/**
 * @author yangji
 */
public interface Logger {

    void d(String... arg);

    void e(String... arg);

    class Default implements Logger {

        @Override
        public void d(String... arg) {
            StringBuilder sb = new StringBuilder();
            for (String s : arg) {
                sb.append(s);
                sb.append(":");
            }
            System.out.println(sb.toString());
        }

        @Override
        public void e(String... arg) {
            StringBuilder sb = new StringBuilder();
            for (String s : arg) {
                sb.append(s);
                sb.append(":");
            }
            System.err.println(sb.toString());
        }
    }
}
